<%--
  Created by IntelliJ IDEA.
  User: AdrianJ
  Date: 2024/6/11
  Time: 16:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<style>
    h1{
        font-size: 20px;
        font-weight: bold;
        color: #383838;
        margin: 0;
    }
    .new-pruduct{
        position: absolute;
        left: 0;
        top: 20px;
        bottom: 20px;
        background-color: #fafafa;
        right: 54%;
        border-radius: 12px;
        box-shadow: 0 0 12px #00000033;
        padding: 8px 12px;
    }
    .my-products{
        position: absolute;
        right: 12px;
        top: 20px;
        bottom: 20px;
        width: calc(54% - 32px);
        padding: 8px;
    }
    .content-container{
        position: absolute;
        left: 16px;
        top: 48px;
        right: 16px;
        bottom: 8px;
    }
    /*新发布商品*/
    .new-pruduct .content-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .new-pruduct .content-container .content-line{
        width: 100%;
        position: relative;
        margin: 4px 0;
        min-height: 32px;
    }
    .new-pruduct .content-container .content-line h2{
        font-size: 16px;
        font-weight: bold;
        color: #666;
        position: absolute;
        left: 0;
        top: 0;
    }
    /*基本信息*/
    .new-pruduct .content-container .content-line:nth-child(3),
    .new-pruduct .content-container .content-line:nth-child(2),
    .new-pruduct .content-container .content-line:nth-child(4),
    .new-pruduct .content-container .content-line:nth-child(1){
        display: flex;
        padding-top: 28px;
        height: 72px;
        align-items: center;
        justify-content: space-between;
    }
    .new-pruduct .content-container .content-line:nth-child(1) div{
        display: flex;
        width: 48%;
        height: 28px;
        align-items: center;
        justify-content: start;
    }
    .new-pruduct .content-container .content-line:nth-child(3) h3,
    .new-pruduct .content-container .content-line:nth-child(1) div h3{
        font-size: 16px;
        margin: 0 8px 0 0;
    }
    .new-pruduct .content-container .content-line:nth-child(3) input,
    .new-pruduct .content-container .content-line:nth-child(1) div input{
        border: 1px solid #ccc;
        padding: 4px 8px;
        outline: none;
        border-radius: 4px;
    }
    /*上传图片*/
    .new-pruduct .content-container .content-line:nth-child(2){
        height: 28%;
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    .new-pruduct .content-container .content-line:nth-child(2) div{
        height: calc(100% - 8px);
        width: calc(100% - 240px);
        overflow: hidden;
        background-color: #f8f8f8;
        border-radius: 8px;
        box-shadow: inset 0 0 8px #00000033;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .new-pruduct .content-container .content-line:nth-child(2) div img{
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        border: 1px solid #eee;
        border-radius: 4px;
    }
    .new-pruduct .content-container .content-line:nth-child(2) button{
        padding: 8px 24px;
        outline: none;
        border: none;
        box-shadow: 0 0 4px #00000033;
        background-color: #ffffff;
        color: #000;
        cursor: pointer;
        border-radius: 4px;
        transition: .4s;
    }
    /*地址*/
    .new-pruduct .content-container .content-line:nth-child(3) input{
        flex: 0.9;
    }
    /*介绍*/
    .new-pruduct .content-container .content-line:nth-child(4){
        flex: 1;
    }
    .new-pruduct .content-container .content-line:nth-child(4) textarea{
        width: 100%;
        height: calc(100% - 66px);
        border: 1px solid #ccc;
        border-radius: 4px;
        resize: none;
        padding: 8px;
        outline: none;
        margin: 12px 0;
    }
    /*按钮*/
    .publish-btn{
        width: 100%;
        padding: 8px 0;
        outline: none;
        border: none;
        box-shadow: 2px 2px 4px #00000033;
        background: linear-gradient(to right bottom, #9bafe5, #bba1e3);
        color: #fff;
        cursor: pointer;
        border-radius: 4px;
        transition: .4s;
        margin-bottom: 8px;
    }
    .publish-btn:hover{
        transition: .4s;
        transform: rotateX(16deg);
        box-shadow: 4px 4px 12px #799be588;
    }
    /*已发布*/
    .my-products .content-container{
        overflow-y: scroll;
        overflow-x: hidden;
    }
    .my-products .content-container .procuct-container{
        width: 100%;
        margin-bottom: 12px;
        height: 460px;
        border-radius: 16px;
        box-shadow: 2px 2px 6px #00000033;
        overflow: hidden;
        margin-right: 4px;
        position: relative;
        min-width: 600px;
    }
    .my-products .content-container .procuct-container .block-back{
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
    .my-products .content-container .procuct-container .block-back div{
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background-color: #fafafaaa;
        backdrop-filter: blur(4px);
    }
    .my-products .content-container .procuct-container .block-back img{
        min-width: 100%;
        min-height: 100%;
        position: absolute;
        object-fit: cover;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    /*图片*/
    .my-products .content-container .procuct-container .block-img{
        position: absolute;
        left: 12px;
        top: 12px;
        height: 270px;
        width: 360px;
        background-color: #fafafa;
        border-radius: 4px;
        border: #eee solid 2px;
        box-shadow: inset 0 0 8px #00000033;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .my-products .content-container .procuct-container .block-img img{
        max-height: 100%;
        max-width: 100%;
        position: absolute;
        object-fit: contain;
    }
    /*基础信息*/
    .my-products .content-container .procuct-container .block-basic{
        position: absolute;
        left: 386px;
        right: 12px;
        top: 12px;
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    .my-products .content-container .procuct-container .block-basic input{
        border: 1px solid #ccc;
        outline: none;
        padding: 6px 8px;
        border-radius: 4px;
        width: calc(100% - 92px);
        align-self: end;
        position: relative;
        background-color: #ffffffaa;
        backdrop-filter: blur(4px);
    }
    .my-products .content-container .procuct-container textarea{
        border: 1px solid #ccc;
        outline: none;
        padding: 8px;
        border-radius: 4px;
        resize: none;
        background-color: #ffffffaa;
        backdrop-filter: blur(4px);
    }

    .my-products .content-container .procuct-container .block-basic button{
        padding: 8px 24px;
        outline: none;
        border: none;
        box-shadow: 2px 2px 4px #00000033;
        background: linear-gradient(to right bottom, #9bafe5, #bba1e3);
        color: #fff;
        cursor: pointer;
        border-radius: 4px;
        transition: .4s;
    }
    .my-products .content-container .procuct-container .block-basic button:hover{
        transform: rotateX(16deg);
        box-shadow: 4px 4px 12px #799be588;
        transition: .4s;
    }

    /*介绍信息*/
    .my-products .content-container .procuct-container .block-intro{
        position: absolute;
        top: 296px;
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 8px;
        white-space: pre-line;
        overflow:scroll;
    }
    /*更多*/
    .more-btn{
        width: 100%;
        text-align: center;
        cursor: pointer;
    }
    /*刷新*/
    .refresh-btn{
        position: fixed;
        right: 24px;
        top: 24px;
        font-size: 15px;
        text-decoration: underline;
        cursor: pointer;
    }
    .delete-btn{
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        outline: none;
        font-size: 14px;
        color: #383838;
        text-decoration: underline;
    }


</style>
